package com.spark.lola.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.spark.lola.entity.statistics.StatisticsStoreProduct;
import com.spark.lola.support.mybatis.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author: DengYeJun
 * @Date: 2020/6/15 16:53
 */
public interface StatisticsStoreProductMapper extends BaseMapper<StatisticsStoreProduct> {
    StatisticsStoreProduct findOne(@Param("storeId")Long storeId,@Param("no")String no, @Param("createDate")String createDate);

    Page<StatisticsStoreProduct> page(Page page, @Param("groupType")Integer groupType, @Param(Constants.WRAPPER) Wrapper wrapper);

    Page<StatisticsStoreProduct> storePage(Page page, @Param("groupType")Integer groupType, @Param(Constants.WRAPPER) Wrapper wrapper);

    Page<StatisticsStoreProduct> productPage(Page page, @Param("groupType")Integer groupType, @Param(Constants.WRAPPER) Wrapper wrapper);

    StatisticsStoreProduct statistics(@Param("storeId")Long storeId,@Param("no")String no, @Param("start") String start, @Param("end") String end);
}
